//这里配置的是home下面的所有子路由

const allRoutes = [
    {
        path: "attendence",
        component: () => import(/*webpackChunkName:'attendence' */"../pages/Home/Attendence"),
        name:"attendence", //具名路由
        // 路由元信息 储存用户定义的一些属性
        meta: {
            fullPath:"/attendence",
            name:"考勤管理",
            icon:"iconfont icon-kaoqinguanli"
        }
    },
    {
        path: "mine",
        component: () => import(/*webpackChunkName:'mine' */"../pages/Home/Mine"),
        name:"mine",
        meta: {
            fullPath:"/mine",
            name:"我的中心",
            icon:"iconfont icon-wodezhongxin"
        }
    },
    {
        path: "statistics",
        component: () => import(/*webpackChunkName:'statistics' */"../pages/Home/Statistics"),
        name:"statistics",
        meta: {
            fullPath:"/statistics",
            name:"数据统计",
            icon:"iconfont icon-shujutongji"            
        }
    },
    {
        path: "studentmanger",
        component: () => import(/*webpackChunkName:'studentmanger' */"../pages/Home/StudentManger"),
        name:"studentmanger",
        redirect:"/studentmanger/product",
        meta: {
            fullPath:"/studentmanger",
            name:"学员管理",
            icon:"iconfont icon-xueyuanguanli",
        },
        children:[
            {
                path:"dormitory",
                component:()=>import(/*webpackChunkName:'dormitory' */"../pages/Home/StudentManger/StudentDormitory"),
                name:"dormitory",
                meta:{
                    fullPath:"/studentmanger/dormitory",
                    icon:"iconfont icon-sushe",
                    name:"学员宿舍"
                }
            },
            {
                path:"product",
                component:()=>import(/*webpackChunkName:"product" */"../pages/Home/StudentManger/StudentProduct"),
                name:"product",
                meta:{
                    fullPath:"/studentmanger/product",
                    name:"学员项目管理",
                    icon:"iconfont icon-xiangmu"
                }
            },
            {
                path:"profile",
                component:()=>import(/*webpackChunkName:"profile" */"../pages/Home/StudentManger/StudentProfile"),
                name:"profile",
                meta:{
                    fullPath:"/studentmanger/profile",
                    name:"学员资料",
                    icon:"iconfont icon-ziliao"
                }
            }
        ]
    },
    {
        path: "users",
        component: () => import(/*webpackChunkName:'users' */"../pages/Home/Users"),
        name:"users",
        meta: {
            fullPath:"/users",
            name:"用户管理",
            icon:"iconfont icon-yonghuguanli"
        }
    },
    {
        path: "welcome",
        component: () => import(/*webpackChunkName:'welcome' */"../pages/Home/Welcome"),
        name:"welcome",
        meta: {
            fullPath:"/welcome",
            name:"管理首页",
            icon:"iconfont icon-shouye"
        }
    }
]

export default allRoutes;